<template>
  <!-- 头部组件 -->
  <AppHeader />
  <!-- 频道组件 -->
  <HomeChannel />
  <!-- 轮播图 -->
  <HomeSwipe />
  <!-- 视频列表 -->
  <HomeVideoList />
</template>

<script setup lang="ts">
// script 中使用setup 导入组件就不需要注册了
import AppHeader from '@/components/app-header.vue'
import HomeChannel from './components/home-channel.vue'
import HomeSwipe from './components/home-swipe.vue'
import HomeVideoList from './components/home-video-list.vue'
import axios from 'axios'
axios({
  url: '/navList',
  method: 'get'
}).then((res) => {
  console.log('获取频道数据', res.data)
})
</script>
